/*
 * Copyright (c) 2018-2999 九五云信息科技有限公司 All rights reserved.
 *
 * https://www.gz-yami.com/
 *
 */

package com.yami.shop.groupbuy.comment.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * 拼团活动商品规格
 *
 * @author LGH
 * @date 2019-08-27 17:55:57
 */
@Data
@TableName("yy_group_sku")
public class GroupSku implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 拼团活动商品规格id
     */
    @TableId
    private Long groupSkuId;
    /**
     * 拼团活动商品id
     */
    private Long groupProdId;
    /**
     * 商品规格id
     */
    private Long skuId;
    /**
     * 活动价格
     */
    private Double actPrice;
    /**
     * 团长价格
     */
    private Double leaderPrice;
    /**
     * 已售数量
     */
    private Long sellNum;

    /**
     * 规格名称
     */
    @TableField(exist = false)
    private String skuName;

    /**
     * 规格单价
     */
    @TableField(exist = false)
    private Double price;

    /**
     * sku库存
     */
    @TableField(exist = false)
    private Long stocks;

}
